package samples.java.json.gson.bean;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

import java.util.Date;
import java.util.Map;

import lombok.Data;

/**
 * @author wang.yuchuan
 * @date 2018/1/31
 */
@Data
public class User {
    private Integer id;
    @Expose
    private String name;
    @Expose(serialize = false)
    private Integer age;
    @Expose(serialize = false, deserialize = false)
    private Date registerTime;

    @SerializedName("bir")
    private Date birthday;

    private Map<String, String> properties;

    private Map<User, Integer> complexProperties;
}
